list1 = [1,1,2,2,5,4,6,23,567,33,576]
list2 = ['hello','world','sgfg']
list3 = [2,'liks',['hello','world','呵',['呵']]]
print(list3)

print(list2[2])
print(list2)

a =list2[2]
a = 'lisrest'
print(list2)
print(a)

b = list2[2:5]
print(b)
list2[3:5] = [3,4,5,6,7,7,8]
print(list2)
print(list1 +list2)

print('='*100)

i=list1.count(2)
o=list1.index(1)
print('list1:',list1)
print(o)
print('='*100)

tup1=(2,5,7,8)
tup2=("123","tyu","nbv")

print('tup1[0]',tup1[0])
print('tup[0:2]', tup1[0:2])
print('tup[:2]',tup1[:2])
print('tup1[1:]',tup1[1:])



tup5 = tup1  + tup2
print(tup5)
len = len (tup1)
print('tup1*3', tup1 * 3)
a = 6 in tup1
for t in tup2 : print(t)

print('='*100)

list1 =[1,2,3,'aa',2,2]
tup1 = (2, 3, 4, 'gg', 5, 6, 7,)
print(list(tup1))
print(tuple(list1))
print('='*100)
dic1={'name3':'re','name2':'rt','name1':'gb','name4':'gjn'}
dic1['name1']="abc"
print(dic1['name1'])

print('dic1.keys()',dic1.keys())
print('dic1.values()',dic1.values())
print('dic1.items()',dic1.items())


for k,v in dic1.items():
    print('key=',k,'value=',v)


print('='*100)
dict.get(key, default=None)
print(dict)